package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;

/**
 * 用户AI情绪userRecordFer对象 emo_user_record_fer
 *
 * @author amber
 * @date 2023-12-04
 */
@Schema(name = "UserRecordFer", description = "用户AI情绪userRecordFer")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_user_record_fer")
public class UserRecordFer extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * PK
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "fer_id", type = IdType.ASSIGN_ID)
    private Long ferId;

    


    /**
     * 当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "当前时间")
    @Excel(name = "当前时间")
    private LocalDate currDate;

    private String emotionCode;

    /**
     * 情绪
     */
    @Schema(description = "情绪")
    @Excel(name = "情绪")
    private String emotion;

    @Schema(description = "图片Url")
    @Excel(name = "图片Url")
    private String imageUrl;
    /**
     * 快乐值
     */
    @Schema(description = "快乐值")
    @Excel(name = "快乐值")
    private Integer modScore;

    /**
     * UserId
     */
    @Schema(description = "UserId")
    @Excel(name = "UserId")
    private Long userId;

    private Integer ferCount;
    private Integer ferStatus;

    private String currMood;
    private String currMoodCn;
    private String currContent;

    /**
     * 是否删除|0-否 1-是
     */
    @Schema(description = "是否删除|0-否 1-是|valid")
    @Excel(name = "是否删除|0-否 1-是|valid")
    private String deleted;

    @TableField(exist = false)
    private Long deptId;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private String nickName;


    @TableField(exist = false)
    private Long teamId;


    /**
     * 快乐值
     */
    @TableField(exist = false)
    private Integer happinessScore;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("createBy", getCreateBy())
                .append("deleted", getDeleted())
                .append("currDate", getCurrDate())
                .append("updateBy", getUpdateBy())
                .append("emotion", getEmotion())
                .append("emotionCode", getEmotionCode())
                .append("ferId", getFerId())
                .append("version", getVersion())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("modScore", getModScore())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .toString();
    }
}
